'use strict';
let bottles=require('../../practices/111.js');

describe('输出99瓶酒的歌谣',function(){
    it('输出5瓶酒的歌谣',function(){
        let t=5;
        let result=bottles(t);
        let answer='5 bottles of beer on the wall, 5 bottles of beer.\n'+
        'Take one down and pass it around, 4 bottles of beer on the wall.\n'+
        '4 bottles of beer on the wall, 4 bottles of beer.\n'+
        'Take one down and pass it around, 3 bottles of beer on the wall.\n'+
        '3 bottles of beer on the wall, 3 bottles of beer.\n'+
        'Take one down and pass it around, 2 bottles of beer on the wall.\n'+
        '2 bottles of beer on the wall, 2 bottles of beer.\n'+
        'Take one down and pass it around, 1 bottle of beer on the wall.\n'+
        '1 bottle of beer on the wall, 1 bottle of beer.\n'+
        'Take one down and pass it around, no more bottles of beer on the wall.\n'+
        'No more bottles of beer on the wall, no more bottles of beer.\n'+
        'Go to the store and buy some more, 5 bottles of beer on the wall.';
        expect(result).toEqual(answer);
    })
    it('输出1瓶酒的歌谣',function(){
        let t=1;
        let result=bottles(t);
        let answer='1 bottle of beer on the wall, 1 bottle of beer.\n'+
        'Take one down and pass it around, no more bottles of beer on the wall.\n'+
        'No more bottles of beer on the wall, no more bottles of beer.\n'+
        'Go to the store and buy some more, 1 bottle of beer on the wall.';
        expect(result).toEqual(answer);
    })
    it('输出2瓶酒的歌谣',function(){
        let t=2;
        let result=bottles(t);
        let answer='2 bottles of beer on the wall, 2 bottles of beer.\n'+
        'Take one down and pass it around, 1 bottle of beer on the wall.\n'+
        '1 bottle of beer on the wall, 1 bottle of beer.\n'+
        'Take one down and pass it around, no more bottles of beer on the wall.\n'+
        'No more bottles of beer on the wall, no more bottles of beer.\n'+
        'Go to the store and buy some more, 2 bottles of beer on the wall.';
        expect(result).toEqual(answer);
    })
})
